﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
using StrategicDataSystems.Cloud.Monitoring.HostedServices;

namespace StrategicDataSystems.Cloud.Monitoring.Tests.Given_A_Deployment
{
    [TestFixture]
    public class When_ToString_Is_Called
    {

        [Test]
        public void Should_Return_Formatted_Deployment_Info_String()
        {
            var deployment = new Deployment("staging", new Uri("http://example.com"), "v1.0", "Running", "service1");

            string expectedInfoString = "service1, v1.0 (Running on staging)";

            Assert.AreEqual(expectedInfoString, deployment.ToString());
        }
    }
}
